package com.gdut.huayan.service;

import com.alibaba.fastjson.JSONObject;
import com.gdut.huayan.entity.po.Order;
import com.gdut.huayan.entity.po.Refund;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

public interface WechatService {
    Map<String, String> prepayOrder(Order order);

    void getAccessToken();

    Map<String, String> parseCallback(HttpServletRequest request) throws Exception;

    JSONObject orderRefund(Refund oldRefund, Order order);

    Map<String,String> refundCallback(HttpServletRequest request) throws Exception;
}
